<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>vue02</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<body>
     <ul id="id-1">
         <li v-for="n in numbers">{{n}}</li>
     </ul>

     <ul>
         <li v-for="n in 10">{{n}}</li>
     </ul>
    <script>
    var vm = new Vue({
        el:'#id-1',
        data: {
            number:[1,2,3,3,5,8,4,6,77  ]
        },
        computed:
        {
         numbers:   function() {
            return this.number.filter(function(n) {
               return n % 2 ===0
            })
        }
        } 
    })
    </script>
</body>
</html>